#include "maxq_config.h"
#include "dtables.h"

maxq_const int dy_table[DTABLE_DIM][DTABLE_DIM] = {
  { 0,89,177,261,342,416,483,541,591,630,658,675,680,673,655,626,585,535,475,407 },
  { 89,179,268,354,436,513,582,644,696,739,770,790,798,794,777,749,709,659,598,528 },
  { 177,268,358,446,531,611,684,749,805,851,887,910,922,921,907,881,843,793,732,661 },
  { 262,354,447,537,625,708,785,855,915,966,1006,1035,1051,1054,1044,1021,985,937,877,806 },
  { 342,437,531,625,717,804,885,960,1026,1082,1128,1161,1183,1191,1186,1167,1135,1089,1031,961 },
  { 417,513,611,708,804,896,982,1062,1134,1197,1249,1289,1316,1331,1331,1318,1290,1248,1193,1125 },
  { 484,583,684,785,885,982,1075,1161,1240,1309,1368,1415,1450,1471,1479,1472,1450,1413,1362,1297 },
  { 542,645,749,855,960,1062,1161,1254,1340,1417,1484,1539,1582,1611,1627,1627,1612,1582,1536,1476 },
  { 591,697,806,916,1026,1134,1239,1340,1433,1518,1594,1658,1710,1749,1773,1782,1775,1752,1714,1660 },
  { 630,739,852,966,1082,1197,1309,1416,1518,1612,1697,1771,1833,1881,1915,1934,1937,1923,1893,1846 },
  { 658,770,887,1006,1127,1248,1367,1483,1593,1697,1791,1876,1948,2007,2052,2082,2095,2092,2071,2034 },
  { 675,790,910,1034,1161,1288,1415,1538,1657,1770,1875,1970,2054,2125,2182,2224,2249,2257,2247,2220 },
  { 680,798,921,1050,1182,1315,1449,1581,1709,1832,1947,2054,2150,2233,2302,2357,2395,2416,2418,2403 },
  { 673,793,920,1053,1190,1329,1470,1610,1747,1880,2006,2124,2232,2329,2412,2480,2532,2566,2582,2580 },
  { 654,776,906,1042,1184,1329,1477,1624,1771,1913,2051,2181,2301,2411,2508,2590,2657,2706,2737,2749 },
  { 624,748,879,1019,1165,1315,1469,1624,1779,1931,2080,2221,2355,2478,2590,2687,2769,2834,2881,2909 },
  { 584,707,841,983,1132,1287,1447,1609,1772,1933,2092,2246,2392,2529,2655,2768,2866,2948,3011,3056 },
  { 533,656,790,934,1086,1245,1409,1578,1748,1919,2088,2253,2412,2563,2704,2832,2947,3045,3126,3189 },
  { 472,595,729,873,1027,1189,1358,1532,1709,1888,2066,2242,2414,2578,2733,2878,3009,3125,3224,3305 },
  { 404,525,657,801,956,1120,1292,1470,1654,1840,2027,2214,2397,2574,2744,2904,3052,3186,3304,3404 }
};

maxq_const int dx_table[DTABLE_DIM][DTABLE_DIM] = {
  { 0,-6,-23,-52,-92,-142,-201,-269,-343,-424,-508,-596,-685,-775,-862,-947,-1026,-1100,-1167,-1225 },
  { 6,0,-18,-47,-87,-138,-199,-268,-345,-429,-518,-610,-705,-800,-894,-985,-1073,-1155,-1230,-1296 },
  { 24,18,0,-29,-70,-122,-184,-255,-335,-422,-515,-612,-712,-813,-914,-1013,-1109,-1199,-1283,-1359 },
  { 53,47,30,0,-41,-93,-157,-230,-312,-402,-499,-600,-706,-813,-921,-1028,-1132,-1232,-1325,-1411 },
  { 92,88,71,42,0,-52,-117,-191,-276,-369,-469,-575,-686,-800,-915,-1030,-1142,-1251,-1355,-1452 },
  { 143,139,123,94,54,1,-64,-140,-226,-321,-425,-536,-652,-772,-894,-1017,-1138,-1257,-1371,-1478 },
  { 202,200,185,158,118,66,1,-75,-163,-261,-367,-482,-603,-728,-857,-988,-1118,-1246,-1371,-1490 },
  { 270,269,257,231,193,142,78,1,-87,-186,-295,-413,-538,-669,-805,-943,-1082,-1220,-1355,-1485 },
  { 345,347,337,314,278,228,166,90,2,-98,-209,-330,-459,-595,-736,-881,-1028,-1176,-1321,-1463 },
  { 425,431,424,404,371,324,263,189,102,2,-110,-232,-364,-504,-651,-803,-958,-1114,-1269,-1423 },
  { 510,520,517,501,472,428,371,299,213,114,3,-121,-255,-398,-550,-707,-869,-1034,-1199,-1363 },
  { 598,612,614,603,578,539,485,417,334,237,127,3,-132,-278,-433,-595,-763,-936,-1110,-1285 },
  { 688,707,714,709,689,655,607,543,464,370,261,139,4,-143,-301,-467,-641,-820,-1002,-1187 },
  { 777,802,816,817,803,776,733,674,600,510,405,285,151,4,-154,-323,-501,-686,-876,-1069 },
  { 865,897,917,925,919,898,862,810,742,657,557,441,309,164,5,-165,-346,-535,-731,-932 },
  { 949,988,1016,1032,1034,1021,993,948,887,810,715,604,476,334,176,6,-176,-369,-569,-777 },
  { 1029,1076,1112,1136,1146,1143,1123,1087,1035,965,877,772,650,512,358,189,7,-187,-391,-604 },
  { 1103,1158,1202,1235,1255,1261,1251,1225,1182,1121,1042,945,830,697,548,382,202,8,-198,-414 },
  { 1169,1232,1286,1329,1359,1375,1376,1360,1328,1277,1208,1120,1013,888,744,583,406,214,9,-209 },
  { 1227,1299,1362,1415,1455,1482,1495,1491,1469,1430,1372,1294,1197,1081,945,791,619,431,227,10 }
};
